package com.shph.validation.rule.impl;

import com.shph.validation.rule.IRule;

import java.util.Collection;
import java.util.Map;

/**
 * 映射非空校验实现类
 */
public class MapEmptyRule implements IRule<Map> {
    @Override
    public boolean test(Map value, String refValue) {
        if (value == null || value.size() < 1) {
            return true;
        }
        return false;
    }
}
